import org.huang.properties.*;
import org.huang.properties.bean.*;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @描述:
 * @作者 Mr.Huang
 * @创建时间 2017-08-07
 * @版本: 1.0
 */
@RunWith(SpringJUnit4ClassRunner.class)
@SpringBootTest(classes = AppServer.class)
public class SpringBootTestSample {

    @Autowired
    private RandomValuePropertyBean randomValuePropertyBean;

    @Autowired
    private PlaceholderBean placeholderBean;

    @Autowired
    private GirlBean girlBean;

    @Autowired
    private ConfigurationPropertiesBean configurationPropertiesBean;



    @Autowired
    private ValidBean validBean;

    @Test
    public void testRandomValuePropertyBean(){
        System.out.println(randomValuePropertyBean);
    }

    @Test
    public void testPlaceholderBean(){
        System.out.println(placeholderBean);
    }

    @Test
    public void testGirlBean(){
        System.out.println(girlBean);
    }

    @Test
    public void testConfigurationPropertiesBean(){
        System.out.println(configurationPropertiesBean);
    }

    @Test
    public void testValidBean(){
        System.out.println(validBean);
    }
}
